<?php
/**
 * Behaves like a Factory of the specified class
 */
class IOC_ProviderBinder extends IOC_ScopeableBinder {
	private $provider;
	private $className;
	
	public function __construct($className, IOC_Provider $provider) {
		$this->provider = $provider;
		$this->className = $className;
	}
    
	protected function build($className) {
		return $this->provider->create($this->className);
	}
}
?>